@import '~antd/es/style/variable.less';

.route-tag-menu {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 34px;
  background: white;
  box-shadow: 4px 1px 4px rgba(36, 37, 37, 0.15);
  transition: left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  pointer-events: auto;
  .route-tag-menu-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    width: 100%;
    height: 33px;
    padding-top: 6px;
    padding-left: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    &::-webkit-scrollbar {
      display: none;
      width: 5px;
      height: 5px;
      background-color: #fff;
    }
    &::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.1);
      border-radius: 3px;
      -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.15);
    }
    &::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.05);
      border-radius: 3px;
      -webkit-box-shadow: inset 0 0 5px rgb(222, 222, 222, 0.15);
    }
    &::-webkit-scrollbar-corner {
      background: rgba(0, 0, 0, 0.05);
    }
    .ant-tag {
      display: inline-block;
      height: 22px;
      margin-right: 8px;
      vertical-align: top;
      cursor: pointer;
      .ant-tag-close-icon {
        position: relative;
        top: -1px;
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-left: 4px;
        vertical-align: middle;
        border-radius: 8px;
        svg {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
        }
        &:hover {
          background: @table-border-color;
        }
      }
    }
  }
  &:hover {
    .route-tag-menu-content::-webkit-scrollbar {
      display: unset;
    }
  }
}
